<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:if="${#authPermit.checkPermit('/mc/staff/detail.action')}" th:class="${flag == 1 ? 'layui-this' : ''}"><a th:href="|/mc/staff/detail.action?staffId=${obj.staffId == null ? 0 : obj.staffId}|" lay-text="员工基础信息">员工基础信息</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/staffarchives/addEditView.action') && obj.staffId > 0}" th:class="${flag == 2 ? 'layui-this' : ''}"><a th:href="|/staff/staffarchives/addEditView.action?staffId=${obj.staffId}|" lay-text="员工档案">员工档案</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/staffcontract/addEditView.action') && obj.staffId > 0}" th:class="${flag == 3 ? 'layui-this' : ''}"><a th:href="|/staff/staffcontract/addEditView.action?staffId=${obj.staffId}|" lay-text="员工合同">员工合同</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/stafffamily/list.action') && obj.staffId > 0}" th:class="${flag == 4 ? 'layui-this' : ''}"><a th:href="|/staff/stafffamily/listByStaffId.action?staffId=${obj.staffId}|" lay-text="家庭关系和联系人">家庭关系和联系人</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/staffleaveoffice/addEditView.action') && obj.staffId > 0 && obj.staffStatus == 3}" th:class="${flag == 5 ? 'layui-this' : ''}"><a th:href="|/staff/staffleaveoffice/addEditView.action?staffId=${obj.staffId}|" lay-text="离职信息">离职信息</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/staffchangelog/list.action') && obj.staffId > 0}" th:class="${flag == 6 ? 'layui-this' : ''}"><a th:href="|/staff/staffchangelog/listByStaffId.action?staffId=${obj.staffId}|" lay-text="员工异动">员工异动</a></li>
        <li th:if="${#authPermit.checkPermit('/staff/staffperformance/list.action') && obj.staffId > 0}" th:class="${flag == 7 ? 'layui-this' : ''}"><a th:href="|/staff/staffperformance/listByStaffId.action?staffId=${obj.staffId}|" lay-text="绩效表现">绩效表现</a></li>
    </ul>
</div>

</html>